package com.spark.usermusicService.controller;


import com.spark.R;
import com.spark.usermusicService.entity.Comment;
import com.spark.usermusicService.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 评论 前端控制器
 * </p>
 *
 * @author wzk
 * @since 2021-07-01
 */
@RestController
@RequestMapping("/usermusicService/comment/")
public class CommentController {
    @Autowired
   private CommentService commentService;
    @GetMapping("findALlUser")
    public R findAll() {

        List<Comment> list = commentService.list(null);
        return R.ok().data("items", list);
    }
}

